#! /usr/bin/python3
# coding=utf-8
# @time: 2025/10/30 17:12
# @Author:鹤川
import time

from pages.basePage import BasePage


class LiuShengPage(BasePage):
    eadd = "com.kkpodcast:id/create_clip_iv"
    eadd_text = "com.kkpodcast:id/content_et"
    econfirm = "com.kkpodcast:id/confirm_tv"
    echange = "com.kkpodcast:id/edit_clip_iv"
    eedit = "com.kkpodcast:id/edit_iv"
    echange_text = "com.kkpodcast:id/content_et"
    econfirm_change = "com.kkpodcast:id/confirm_tv"
    eback = "com.kkpodcast:id/back_iv"
    enum = "com.kkpodcast:id/album_clip_num_tv"


    def add_jiazi(self,eadd_text):
        self.clickEle(self.eadd)
        self.inputEle(self.eadd_text, eadd_text)
        time.sleep(1)
        self.clickEle(self.econfirm)

    def change_jiazi(self,echange_text):
        self.clickEle(self.echange)
        self.clickEle(self.eedit)
        self.inputEle(self.echange_text, echange_text)
        self.clickEle(self.econfirm_change)
        self.clickEle(self.eback)




if __name__ == '__main__':
    # LiuShengPage().add_jiazi("我是鹤川")
    LiuShengPage().change_jiazi("鹤川")


